<template>
  <div class="parent">
    <child2 @fatherMethod="fatherFunction">父组件</child2>
  </div>
</template>

<script>
  import child2 from './Children2'

  export default {
    components: {
      child2
    },
    name: "Father1",
    data() {
      return {}
    },
    methods: {
      fatherFunction(val){
        window.alert("子组件中传过来的值  "+val)
      }
    }
  }

</script>

<style scoped>

</style>
